<?php
/**
 * 2016.8.8数组常用函数
 * User: wuz
 * Date: 2016/8/9
 * Time: 9:02
 */

$arr = array(
    0 => array('fid' => 1, 'tid' => 1, 'name' => 'xiaoming'),
    6 => array('fid' => 1, 'tid' => 2, 'name' => 'zhangsan'),
    2 => array('fid' => 1, 'tid' => 5, 'name' => 'lisi'),
    3 => array('fid' => 1, 'tid' => 7, 'name' => 'wangwu'),
    4 => array('fid' => 3, 'tid' => 9, 'name' => 'zhaoliu'),
);

/*array_values 返回数组所有值，并建立索引
 *将数组$arr中下标六 重新建索引，变成下标1
 * **/
$c = array_values($arr);
var_dump($c);
